package com.xyz.service;

import org.apache.commons.lang.StringUtils;

/**
 * @author 肖咉卓
 */
public class TicketServiceImpl implements TicketService {

    private final TicketService ticketService;

    /**
     * 传入的远程代理对象
     * @param ticketService
     */
    public TicketServiceImpl(TicketService ticketService){
        this.ticketService=ticketService;
    }

    @Override
    public String getTicket() {
        System.out.println("设置本地存根调用了");
        return ticketService.getTicket();
    }
}
